﻿using OddUserManager.Data.IRepositories;
using OddUserManager.Data.Repositories;
using OddUserManager.Model;
using OddUserManager.Service.IServices;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace OddUserManager.Service.Services
{
    public class SystemConstantService : ISystemConstantService
    {
        private ISystemConstantRepository _repository;

        public SystemConstantService(ISystemConstantRepository repository) {
            _repository = repository;
        }

        public List<SystemConstant> GetAllList()
        {
            return _repository.GetAllList().ToList();
        }

        public bool InsertOrUpdate(SystemConstant entity)
        {
            return _repository.InsertOrUpdate(entity);
        }
    }
}
